CC=gcc
CFLAGS=-W -Wall -g -I/net/local/pvm3/include -lm
LDFLAGS=-lpvm3 -L/net/local/pvm3/lib/LINUX64 -lm

all: mrproper master slave
	@cp slave ../../bin/LINUX64/slave

master: master.o 
	@$(CC) -g master.o -o master $(LDFLAGS)

slave: slave.o 
	@$(CC) -g slave.o -o slave $(LDFLAGS)

slave.o: slave.c 
	@$(CC) -c slave.c -o slave.o $(CFLAGS)

master.o: master.c
	@$(CC) -c master.c -o master.o $(CFLAGS)

clean:
	@rm -f *.o

mrproper: clean
	@rm -f master slave
	@rm -f ../../bin/LINUX64/slave